from random import random


class GamePosition:
    y: int
    x: int

    def __init__(self, y: int, x: int):
        self.y = y
        self.x = x


index_2_action = ["STOP", "UP", "DOWN", "LEFT", "RIGHT"]


def generate_random_action_index() -> int:
    return int(random() * len(index_2_action))
